#!/bin/bash

if test -z "${XDG_RUNTIME_DIR}"; then
    export XDG_RUNTIME_DIR=/tmp/run/user/${UID}
    mkdir -p ${XDG_RUNTIME_DIR}
    chmod 0700 "${XDG_RUNTIME_DIR}"
fi

export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export SDL_IM_MODULE=fcitx
# obs studio
# export QT_QPA_PLATFORM=wayland

dbus-launch --exit-with-session Hyprland
## dbus-run-session Hyprland
